package net.yb.dao;

import net.yb.entity.Product;

import java.util.List;

/**
 * 商品Dao接口
 */
public interface ProductDao {
    void insert(Product product);

    List<Product> selectAll();

    Product selectById(Integer pid);

    void updateById(Product product);

    void deleteById(int id);

    List<Product> selectByName(String name);

    List<Product> selectByPrice(double minPrice, double maxPrice);
}
